/**
 * basics
 * 基础管理，所有的路由配置
 */
export default [
    {
        path: '/',
        redirect: '/basics/classify',
        alwaysShow: false, // will always show the root menu
    },
    {
        path: '/basics',
        redirect: '/basics/classify',
        alwaysShow: true, // will always show the root menu
        name: 'Basics',
        meta: {
            title: '基础管理',
            icon: 'icon-jichuguanli1',
            roles: ['admin', 'editor'] // you can set roles in root nav
        },
        children: [
            {
                path: 'classify',
                component: () => import('@/views/Basics/Classify.vue'),
                name: 'Classify',
                meta: {
                    title: '分类管理',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            },
            {
                path: 'college',
                component: () => import('@/views/Basics/College.vue'),
                name: 'college',
                meta: {
                    title: '学院管理',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            },
            {
                path: 'major',
                component: () => import('@/views/Basics/Major.vue'),
                name: 'Major',
                meta: {
                    title: '专业管理',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            },
            {
                path: 'course',
                component: () => import('@/views/Basics/Course.vue'),
                name: 'Course',
                meta: {
                    title: '课程管理',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            },
            {
                path: 'classroom',
                component: () => import('@/views/Basics/Classroom.vue'),
                name: 'Classroom',
                meta: {
                    title: '教室管理',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            },
            {
                path: 'classGrade',
                component: () => import('@/views/Basics/ClassGrade.vue'),
                name: 'ClassGrade',
                meta: {
                    title: '班级管理',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            },
            {
                path: 'shiftstrategy',
                component: () => import('@/views/Basics/ShiftStrategy.vue'),
                name: 'ShiftStrategy',
                meta: {
                    title: '分班策略',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            },
           /*  {
                path: 'journal',
                component: () => import('@/views/Basics/Journal.vue'),
                name: 'Journal',
                meta: {
                    title: '系统操作日志',
                    roles: ['admin'] // or you can only set roles in sub nav
                },
                hidden: true 
            }, */
            {
                path: 'picture',
                component: () => import('@/views/Basics/Picture.vue'),
                name: 'Picture',
                meta: {
                    title: '电子照片策略',
                    roles: ['admin'] // or you can only set roles in sub nav
                }
            }
        ]
    }
] 